package com.allwees.bs.c.module.sys.service.impl;

import com.allwees.bs.c.module.sys.service.IRegionService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class RegionServiceImpl implements IRegionService {
//	@Autowired
//	private RegionRepository regionRepository;
//	@Override
//	public void paeseZipCode4City(RegionEntity city) {
//		private static final String US_ZIPCODE_URL_PREFIX = "https://www.nowmsg.com/findzip/findzip.asp?CityName=";
//		HttpClient.getString(US_ZIPCODE_URL_PREFIX + cityName);
//		String zipcode = ZipCodeFetcher.parseUsZipCode(city.getRegionNameEn());
//		log.info("fetch [{}] -> {}", city.getRegionNameEn(), zipcode);
//		city.setZipcode(zipcode);
//		regionRepository.save(city);
//	}
}
